<template>
	<view>
		<view class="cu-list menu">
			<view v-for="(item,key) in wage_details_data" :key='key' class="cu-item">
				<view class="content">
					<text class="text-grey">{{item[0]}}</text>
				</view>
				<view class="action">
					<text class="text-grey text-sm">{{item[1]}}</text>
				</view>
			</view>
			<view v-if="state" class="text-center text-grey text-sm">-- 没有更多了 --</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"details",
		props:['WageDatas'],
		data() {
			return {
				// wage_details_data:[['基本工资','1000.00'],['绩效工资','0.0132']]
				wage_details_data:[],
				state:false
				
			}
		},
		methods: {
			onLoad:function(options){

			  uniCloud.callFunction({
			  	name:"get_wage_id",
			  	data:{
					id:options.id
					}
			  }).then((res) => {
			  	//函数处理成功
				this.wage_details_data =eval(res.result.data[0].Datas);
			  	this.state = true;
			  }).catch((err) => {
			  	//函数处理失败
				this.state = true;
			  })
			 }
		}
	}
</script>

<style>

</style>
